package com.zcy.util;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import net.sf.json.JSONObject;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.io.SAXReader;

import java.io.File;
import java.io.IOException;

/**
 * Created by join on 2017/6/27.
 */
public class Xml2Json {

    public static void main(String[] args){

        SAXReader reader = new SAXReader();
        try {
            Document document = reader.read(new File("/Users/join/Desktop/dy.hbm.xml"));
            JSONObject json=new JSONObject();


            //dom4j2Json(doc.getRootElement(), json);

        } catch (DocumentException e) {
            e.printStackTrace();
        }


    }

}
